//
//  DYMoneyRecordCell.m
//  kafuMerchant
//
//  Created by 帝云科技 on 2018/9/20.
//  Copyright © 2018年 帝云科技. All rights reserved.
//

#import "DYMoneyRecordCell.h"

@interface DYMoneyRecordCell ()

@property (nonatomic,strong)UILabel *titleLabel;
@property (nonatomic,strong)UILabel *contentLabel;
@property (nonatomic,strong)UILabel *balanceLabel;
@property (nonatomic,strong)UILabel *freezeLabel;
@property (nonatomic,strong)UILabel *timeLabel;
@property (nonatomic,strong)UILabel *moneyLabel;
@property (nonatomic,strong)UILabel *line;

@end


@implementation DYMoneyRecordCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)dy_initUI
{
    [super dy_initUI];
    
    self.hideSeparatorLabel=YES;
    
    [self xhq_noneSelectionStyle];
    
    self.titleLabel = ({
        UILabel *label=[Utils labelWithTitle:@"状态" titleFontSize:14 textColor:[UIColor xhq_content] backgroundColor:ClearColor alignment:0];
        label;
    });
    
    self.contentLabel=({
        UILabel *label=[Utils labelWithTitle:@"" titleFontSize:12 textColor:[UIColor xhq_content] backgroundColor:ClearColor alignment:0];
        label;
    });
    
    self.balanceLabel = ({
        UILabel *label=[Utils labelWithTitle:@"账户余额：" titleFontSize:12 textColor:[UIColor xhq_assist] backgroundColor:ClearColor alignment:0];
        label;
    });
    
    self.freezeLabel = ({
        UILabel *label=[Utils labelWithTitle:@"冻结金额：" titleFontSize:12 textColor:[UIColor xhq_assist] backgroundColor:ClearColor alignment:0];
        label;
    });
    
    
    self.timeLabel = ({
        UILabel *label=[Utils labelWithTitle:@"" titleFontSize:12 textColor:[UIColor xhq_assist] backgroundColor:ClearColor alignment:2];
        label;
    });
    
    self.moneyLabel = ({
        UILabel *label=[Utils labelWithTitle:@"" titleFontSize:14 textColor:[UIColor xhq_red] backgroundColor:ClearColor alignment:0];
        label;
    });
    
    self.line=({
        UILabel *line=[UILabel xhq_lineLabel];
        line;
    });
    
    [self addSubview:self.titleLabel];
    [self addSubview:self.contentLabel];
    [self addSubview:self.balanceLabel];
    [self addSubview:self.freezeLabel];
    [self addSubview:self.moneyLabel];
    [self addSubview:self.timeLabel];
    [self addSubview:self.line];
    
    [self.titleLabel makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(BILIWIDTH(14));
        make.top.equalTo(BILIHEIGHT(10));
    }];
    
    [self.contentLabel makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.titleLabel);
        make.top.equalTo(self.titleLabel.bottom).offset(BILIHEIGHT(10));
    }];
    
    [self.balanceLabel makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.titleLabel);
        make.top.equalTo(self.contentLabel.bottom).offset(BILIHEIGHT(10));
    }];
    
    [self.freezeLabel makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.titleLabel);
        make.top.equalTo(self.balanceLabel.bottom).offset(BILIHEIGHT(10));
    }];
    
    [self.moneyLabel makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(BILIWIDTH(-14));
        make.centerY.equalTo(self.balanceLabel);
    }];
    
    [self.timeLabel makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(BILIWIDTH(-14));
        make.centerY.equalTo(self.freezeLabel);
    }];
    
    [self.line makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(BILIWIDTH(10));
        make.bottom.right.equalTo(0);
        make.height.equalTo(BILIWIDTH(0.7));
    }];
    
    self.contentLabel.text=@"商户本日/月资金结算";
    self.timeLabel.text=@"2019-08-09 12:33:44";
    self.moneyLabel.text=@"+¥800";
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end


@interface DYMoneyRecordCellTwo ()

@property (nonatomic,strong)UILabel *titleLabel;
@property (nonatomic,strong)UILabel *balanceLabel;
@property (nonatomic,strong)UILabel *freezeLabel;
@property (nonatomic,strong)UILabel *timeLabel;
@property (nonatomic,strong)UILabel *moneyLabel;
@property (nonatomic,strong)UILabel *line;

@end

@implementation DYMoneyRecordCellTwo


-(void)dy_initUI
{
    [super dy_initUI];
    
    self.hideSeparatorLabel=YES;
    
    [self xhq_noneSelectionStyle];
    
    self.titleLabel = ({
        UILabel *label=[Utils labelWithTitle:@"状态" titleFontSize:14 textColor:[UIColor xhq_content] backgroundColor:ClearColor alignment:0];
        label;
    });
    
    
    self.balanceLabel = ({
        UILabel *label=[Utils labelWithTitle:@"账户余额：" titleFontSize:12 textColor:[UIColor xhq_assist] backgroundColor:ClearColor alignment:0];
        label;
    });
    
    self.freezeLabel = ({
        UILabel *label=[Utils labelWithTitle:@"冻结金额：" titleFontSize:12 textColor:[UIColor xhq_assist] backgroundColor:ClearColor alignment:0];
        label;
    });
    
    
    self.timeLabel = ({
        UILabel *label=[Utils labelWithTitle:@"" titleFontSize:12 textColor:[UIColor xhq_assist] backgroundColor:ClearColor alignment:2];
        label;
    });
    
    self.moneyLabel = ({
        UILabel *label=[Utils labelWithTitle:@"" titleFontSize:14 textColor:[UIColor xhq_base] backgroundColor:ClearColor alignment:0];
        label;
    });
    
    self.line=({
        UILabel *line=[UILabel xhq_lineLabel];
        line;
    });
    
    [self addSubview:self.titleLabel];
    [self addSubview:self.balanceLabel];
    [self addSubview:self.freezeLabel];
    [self addSubview:self.moneyLabel];
    [self addSubview:self.timeLabel];
    [self addSubview:self.line];
    
    [self.titleLabel makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(BILIWIDTH(14));
        make.top.equalTo(BILIHEIGHT(10));
    }];
    
    
    [self.balanceLabel makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.titleLabel);
        make.top.equalTo(self.titleLabel.bottom).offset(BILIHEIGHT(10));
    }];
    
    [self.freezeLabel makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.titleLabel);
        make.top.equalTo(self.balanceLabel.bottom).offset(BILIHEIGHT(10));
    }];
    
    [self.moneyLabel makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(BILIWIDTH(-14));
        make.centerY.equalTo(self.titleLabel);
    }];
    
    [self.timeLabel makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(BILIWIDTH(-14));
        make.centerY.equalTo(self.freezeLabel);
    }];
    
    [self.line makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(BILIWIDTH(10));
        make.bottom.right.equalTo(0);
        make.height.equalTo(BILIWIDTH(0.7));
    }];

    self.timeLabel.text=@"2019-08-09 12:33:44";
    self.moneyLabel.text=@"+¥800";
    
}


@end
